<?php

namespace backend\models;

use Yii;

/**
 * This is the model class for table "admin_member".
 *
 * @property int $id
 * @property string|null $name
 * @property string|null $pwd
 * @property int|null $type 1 代表正常使用  0 代表拉入黑名单
 */
class AdminMember extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'admin_member';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['type'], 'integer'],
            [['name', 'pwd'], 'string', 'max' => 32],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => '会员编号',
            'name' => '会员名称',
            'pwd' => '会员密码',
            'type' => '会员状态',
        ];
    }
}
